using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Cfg;
using FutureOpen.Core.func.util;

namespace FutureOpen.Core.func.db
{
    public class MyDBEntity
    {
        protected Configuration config;
        protected ISessionFactory factory;
        protected string CONNSTR = ConfigUtil.GetConnectionStr();

        public MyDBEntity()
        {
            config = new Configuration();
            config.AddAssembly("FutureOpen.Core");
            factory = config.BuildSessionFactory();
        }
        
    }
}
